package cn.t11.dm.link_user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 常用联系人表

 * </p>
 *
 * @author t11
 * @since 2020-01-14
 */
public class DmLinkUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 对应用户表的主键
     */
    @TableField("userId")
    private Long userId;

    /**
     * 联系人姓名
     */
    private String name;

    /**
     * 身份证号
     */
    @TableField("idCard")
    private String idCard;

    /**
     * 证件类型(0:身份证 1:护照)
     */
    @TableField("cardType")
    private Integer cardType;

    /**
     * 创建时间
     */
    @TableField("createdTime")
    private Date createdTime;

    /**
     * 修改时间
     */
    @TableField("updatedTime")
    private Date updatedTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
    public Integer getCardType() {
        return cardType;
    }

    public void setCardType(Integer cardType) {
        this.cardType = cardType;
    }
    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "DmLinkUser{" +
            "id=" + id +
            ", userId=" + userId +
            ", name=" + name +
            ", idCard=" + idCard +
            ", cardType=" + cardType +
            ", createdTime=" + createdTime +
            ", updatedTime=" + updatedTime +
        "}";
    }
}
